package com.ethink.system.facade.impl;

import com.ethink.system.api.SystemFileFacade;
import com.ethink.system.api.info.SystemFileInfo;
import com.ethink.system.api.request.SystemFileAddRequest;
import com.ethink.system.service.SystemFileService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

/**
 * 系统文件表 Facade接口实现
 *
 * @author default
 * @date 2022-12-01
 */
@RestController
@Slf4j
@RequestMapping("system-service/facade/v1/systemFile")
public class SystemFileFacadeImpl implements SystemFileFacade {

    @Autowired
    private SystemFileService systemFileService;

    @Override
    public Integer addSystemFile(SystemFileAddRequest request) {
        return systemFileService.addSystemFile(request);
    }

    @Override
    public Map<String, SystemFileInfo> selectMapByFileIds(List<String> filedIdList) {
        return systemFileService.selectMapByFileIds(filedIdList);
    }

}